import { auditRouter } from "./audit";

export const systemRouter = {
  path: "/system",
  name: "system",
  redirect: "/system/rqOpUser",
  meta: {
    icon: "Setting",
    title: "message.hssysManagement",
    i18n: true,
    showLink: true,
    rank: 2
  },
  children: [
    {
      path: "/system/rqOpUser/add",
      name: "rqOpUserAdd",
      meta: {
        title: "",
        showLink: false,
        i18n: false,
        realPath: "/common/add",
        refreshRedirect: "/system/rqOpUser"
      }
    },
    {
      path: "/system/rqOpUser/edit",
      name: "rqOpUserEdit",
      meta: {
        title: "",
        showLink: false,
        i18n: false,
        refreshRedirect: "/system/rqOpUser",
        realPath: "/common/edit"
      }
    },
    {
      path: "/system/rqOpUser/detail",
      name: "rqOpUserDetail",
      meta: {
        title: "",
        showLink: false,
        i18n: false,
        refreshRedirect: "/system/rqOpUser",
        realPath: "/common/detail"
      }
    },
    {
      path: "/system/rqOpUser",
      name: "rqOpUser",
      meta: {
        title: "message.hcUser",
        realPath: "/system-manage/rqOpUser",
        i18n: true,
        showLink: true
      }
    },
    auditRouter
  ]
};
